/*
 *  FrameListener.h
 *  openmove
 *
 *  Created by Sam le Pirate on 10/11/05.
 *  Copyright 2005 __MyCompanyName__. All rights reserved.
 *
 */

////////////////////////////////////////////////////////////////////////// 
// class CSimpleFrameListener 
////////////////////////////////////////////////////////////////////////// 
class CSimpleFrameListener : public FrameListener 
{ 
public: 
	CSimpleFrameListener(StaticGeometry *pStaticGeometry = NULL, SceneNode *pSceneNode = NULL, Entity *pEntity = NULL);
	bool frameStarted(const FrameEvent& evt);
	// This gets called at the end of a frame. It's not necessary to use it.
	bool frameEnded(const FrameEvent& evt);
	void Init(void);

private: 
	StaticGeometry * m_pStaticGeometry;
	SceneNode * m_pSceneNode;
	Entity * m_pEntity;

	void WaveGrass(Real timeElapsed);

	Real xinc;
	Real zinc;
	Real xpos;
	Real zpos;

}; 
